import sys, os, glob

defs     = ['_REENTRANT', 'DEBUG', 'DEBUGMEM']
includes = ['.', '../shared', '../../includes']
cflags = '-ggdb -pthread -Wall -Werror'
name = 'libcommon.a'

install_dir = '../../target/libs'
files = glob.glob("*.cc") 
env = Environment(CCFLAGS=cflags, CPPDEFINES=defs, CPPPATH=includes)
bin = env.StaticLibrary(name, files)
env.Install(install_dir, bin)
env.Alias('install', install_dir)
